Viacheslav Eremin | Visual Studio 2010 and .NET Framework 4 Training Kit | ASP.NET MVC 3.0 Fundamentals
 
 
 


Hands-On Lab

ASP.NET MVC 3.0 Fundamentals


Lab version:1.1.0

Last updated:10/13/2011






Contents

Overview

Exercise 1: Creating MusicStore ASP.NET MVC Web Application Project

Task 1 � Creating the ASP.NET MVC Web Application Project

Task 2 � Exploring the Solution Structure

Task 3 � Adding a HomeController

Task 4 � Running the Application

Exercise 2: Creating a Controller

Task 1 � Adding a New StoreController Class

Task 2 � Modifying the StoreController�s Actions

Task 3 � Running the Application

Exercise 3: Passing parameters to a Controller

Task 1 � Adding Genre Parameter to StoreController

Task 2 � Running the Application

Task 3 � Adding an Id Parameter Embedded in the URL

Task 4 � Running the Application

Exercise 4: Creating a View

Task 1 � Adding a MasterPage

Task 2 � Adding CSS Stylesheet

Task 3 � Adding a View Template

Exercise 4: Verification

Exercise 5: Creating a View Model

Task 1 � Creating a ViewModel Class

Task 2 � Adding Properties to the ViewModel class

Task 3 � Updating StoreController to use the StoreIndexViewModel

Task 4 � Creating a View Template that Uses StoreIndexViewModel

Task 5 � Updating the View Template

Exercise 6: Using Parameters in View

Task 1 � Adding Model Classes

Task 2 � Adding a StoreBrowseViewModel

Task 3 � Using the New ViewModel in the StoreController

Task 4 � Adding a Browse View Template

Task 5 � Running the Application

Task 6 � Displaying information About a Specific Album

Task 7 � Running the Application

Task 8 � Adding Links Between Pages

Task 9 � Running the Application

Task 10 � Using Dynamic ViewModel Collection to Pass Values

Task 11 � Running the Application

Summary